home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML Instance.sea / XML Instance / Required / plugins / HTMLWindow.jar / horst / TextInput.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-03-18  |  807 b   |  22 lines

  1. package horst;
  2.  
  3. import java.awt.Dimension;
  4. import javax.swing.JTextField;
  5.  
  6. class TextInput extends JTextField {
  7.    Dimension _prefSize = new Dimension(30, 30);
  8.  
  9.    public int getColumnWidth() {
  10.       return super.getColumnWidth();
  11.    }
  12.  
  13.    public Dimension getPreferredSize() {
  14.       return this._prefSize;
  15.    }
  16.  
  17.    public void setPreferredSize(Dimension dim) {
  18.       this._prefSize = dim;
  19.       super.setPreferredSize(dim);
  20.    }
  21. }
  22.